package org.dba;

import java.io.File;

import javax.swing.UIManager;

import org.dba.service.CoreService;
import org.dba.util.DbaXml;
import org.dba.util.FrameManager;
import org.dba.util.ProjectContext;

public class Main {	
	
	private Main() {
		
	}
	
	private static void init() throws Exception {
		ProjectContext.root = new File(".").getCanonicalPath()+File.separator;
		initLib();
		initConfig();
		initService();
	}
	private static void initService() {
		CoreService.getInstance();
	}

	private static void initLib() throws Exception {
	}
	private static void initConfig() throws Exception {
		DbaXml.read(new File(ProjectContext.getSourcePath()+"dba.xml"));
	}
	
	
	
	public static void main(String[] args) throws Exception {
		UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
		init();
		FrameManager.F_SUPER.display();
	}
}



















